package com.ibigcat.module.mdm.controller.admin.commodity.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.ibigcat.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.ibigcat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 商品信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CommodityPageReqVO extends PageParam {

    @Schema(description = "商品名称", example = "赵六")
    private String skuName;

    @Schema(description = "商户商品编码")
    private String customerSkuCode;

    @Schema(description = "居然商品编码")
    private String iotSkuCode;

    @Schema(description = "厂家商品编码")
    private String factorySkuCode;

    @Schema(description = "居然商品名称", example = "王五")
    private String iotSkuName;

    @Schema(description = "商品品牌")
    private String skuBrand;

    @Schema(description = "商品单位")
    private String skuUnit;

    @Schema(description = "所属客户")
    private String customerCode;

    @Schema(description = "是否定制品")
    private Boolean customizedInd;

    @Schema(description = "长（MM）")
    private BigDecimal length;

    @Schema(description = "宽（MM）")
    private BigDecimal width;

    @Schema(description = "高（MM）")
    private BigDecimal height;

    @Schema(description = "毛重（KG）")
    private BigDecimal grossWeight;

    @Schema(description = "体积（立方米）")
    private BigDecimal volume;

    @Schema(description = "商品一级分类")
    private String firstCategoryLevel;

    @Schema(description = "商品二级分类")
    private String secondCategoryLevel;

    @Schema(description = "商品三级分类")
    private String thirdCategoryLevel;

    @Schema(description = "启停状态")
    private Boolean disabled;

    @Schema(description = "数据来源")
    private String dataSource;

    @Schema(description = "商品引用时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private String[] referenceTime;

    @Schema(description = "市场参考价", example = "16758")
    private BigDecimal referencePrice;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}